package fr.utbm.gl52.smartgrid.util.properties;

public class PropertyLong implements Properties<Long> {

	private String name;
	private boolean error;
	private Long value;
	private Class<Long> c;

	public PropertyLong(String name, long value, boolean error) {
		setName(name);
		setValue(value);
		setError(error);
		setType(Long.class);
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void setError(boolean hasError) {
		this.error = hasError;
	}

	@Override
	public void setValue(Long e) {
		this.value = e;
	}

	@Override
	public void setType(Class<Long> c) {
		this.c = c;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public Long getValue() {
		return this.value;
	}

	@Override
	public Class<Long> getType() {
		return this.c;
	}

	@Override
	public boolean hasError() {
		return this.error;
	}

}
